home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950329-19950528
/
000368_news@columbia.edu_Tue May 9 20:07:00 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA25642
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 12 May 1995 02:23:19 -0400
Received: by apakabar.cc.columbia.edu id AA24574
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 12 May 1995 02:23:17 -0400
Path: news.columbia.edu!panix!news.mathworks.com!gatech!howland.reston.ans.net!cs.utexas.edu!utnut!nott!nrcnet0.nrc.ca!ratilal
From: Bradley Pick <BPICK@cisti.lan.nrc.ca>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Reading and Writing Line by Line
Date: 9 May 1995 20:07:00 GMT
Organization: National Research Council, Canada
Lines: 36
Message-Id: <3ooi14$d6c@nrcnet0.nrc.ca>
References: <3oj4c1$51e@nrcnet0.nrc.ca> <1995May7.140204.50030@cc.usu.edu>
Nntp-Posting-Host: ws55.cisti.nrc.ca
Apparently-To: kermit.misc@watsun.cc.columbia.edu
jrd@cc.usu.edu (Joe Doupnik) wrote:
>
> In article <3oj4c1$51e@nrcnet0.nrc.ca>, Bradley Pick <BPICK@CISTI.LAN.NRC.CA> writes:
> > Using Ms-dos kermit 3.14 I have a script that reads specific lines
> > from one file and then writes it to second file line by line.
> > Sometimes my main text file will contain lines that end with a
> > hyphen ("-") and as a result when I start to read and write the lines
> > one by one I get an error when I encounter any lines that end with
> > a hyphen (-) The error say "TEXT EXCEEDED AVAILABLE BUFFER CAPACITY"
> > "WORD XXXX IS NOT USABLE HERE". I know that the hypen means to treat
> > the line and the line below it as one continuing line. But how do I
> > tell kermit to ignore what that hypen(-) means and to treat each line
> > individually so I can read line by line.
> --------
> Well, as they say, "don't do that." Instead end the line with
> something else, say a space after your hyphen. There is no way of turning
> off line continuation with a trailing hyphen.
> Joe D.
I can't end the line with anything else as the file that I'm
capturing is edifact coding and it is fixed at 80 characters per
line. The reason I was reading line by line and writing to a second
file was that at the end of my captured file I have a few lines
that I need to get rid off. The first line starting with "ALL REQUESTS
HAVE BEEN PRINTED"and few others would follow. What I would do was
using the FINDEX function I would stop writing to my second file
when I encountered that magic line and then I would have pure coding
in my second file.
Can someone please tell me how I can the accomplish the same thing
(getting rid of unwanted lines at the bottom of my captured file)
without running into the problem of reading line by line and getting
caught by a line that ends in a hypen and overflowing the buffer.
thanks again
Brad